import request from "@/utils/request";

// 查询评估记录（分页 + 条件）
export function getAssessmentList(data) {
  return request({
    url: "/api/Assessment/list",
    method: "post",
    data,
  });
}

// 新增评估记录
export function addAssessment(data) {
  debugger;
  return request({
    url: "/api/Assessment",
    method: "post",
    data,
  });
}

// 更新评估记录
export function updateAssessment(data) {
  return request({
    url: `/api/Assessment/${data.id}`,
    method: "put",
    data,
  });
}

// 删除评估记录
export function deleteAssessment(id) {
  return request({
    url: `/api/Assessment/${id}`,
    method: "delete",
  });
}

// 获取评估详情
export function getAssessment(id) {
  return request({
    url: `/api/Assessment/${id}`,
    method: "get",
  });
}
